package com.zerui.manager.operationrecord.convertor;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zerui.manager.operationrecord.OperationRecord;
import com.zerui.manager.operationrecord.entity.OperationRecordDo;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @Author wh
 * @create_time 2023-08-23 15:28
 */
@Mapper
public interface OperationRecordConvert {

	OperationRecordConvert INSTANCE = Mappers.getMapper(OperationRecordConvert.class);

	Page<OperationRecord> convertOperationRecordDoToOperationRecordPage(Page<OperationRecordDo> operationRecordDoPage);

	List<OperationRecordDo> convertOperationRecordsToOperationRecordDo(List<OperationRecord> operationRecords);
}

